// 后台管理
import React from 'react'
import LazyLoad from '../../LazyLoad'

const NewsManager = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/NewsMange/Index')} {...props} />
const GonghanManager = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/GonghanManage/Index')} {...props} />
const GonggaoManager = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/GonggaoManage/Index')} {...props} />
const CaselibManager = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/CaselibManage/Index')} {...props} />
const DoclibManager = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/DoclibManage/Index')} {...props} />
const KnowledgelibManager = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/KnowledgelibManage/Index')} {...props} />
const NewsDetail = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/NewsDetail/Index')} {...props} />
const GonggaoDetail = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/GonggaoDetail/Index')} {...props} />
const GonghanDetail = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/GonghanDetail/Index')} {...props} />
const CaselibDetail = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/CaselibDetail/Index')} {...props} />
const DoclibDetail = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/DoclibDetail/Index')} {...props} />
const KnowledgelibDetail = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/KnowledgelibDetail/Index')} {...props} />
const GonghanTemplateManager = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/GonghanTemplateManager/Index')} {...props} />
const HomeArticleManage = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/HomeArticleManage/Index')} {...props} />
const HomeArticleDetail = (props) => <LazyLoad loadFn={() => import('@pages/articleManage/HomeArticleDetail/Index')} {...props} />

const router = {
  NewsManager, // 新闻管理
  GonghanManager, // 公告管理
  GonggaoManager, // 公函管理
  DoclibManager, // 文书库管理
  KnowledgelibManager, // 知识库管理
  NewsDetail, // 新闻详情
  GonggaoDetail, // 公告详情
  GonghanDetail, // 公函详情
  CaselibManager, // 案例库管理
  CaselibDetail, // 案例库详情
  DoclibDetail, // 文书库详情
  KnowledgelibDetail, // 知识库详情
  GonghanTemplateManager, // 公函模板管理
  HomepageArticle: HomeArticleManage, // 首页文章管理
  HomeArticleDetail // 首页文章详情
}

export default router
